package com.whub507.msgmanager.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Project implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String name;

//    @TableField(exist = false)
//    private List<Message> messageList;

//    @TableLogic(value = "0",delval ="id" )
//    private Long deleted;

    private String detail;

    private String createtime;

    private Integer senderid;

    private Integer approverid;

    private String invalidtime;

    private String type;

    private Integer status;

    public Project(String name, String detail, String type, Integer senderId, Integer approverId, String invalidtime) {
        this.name = name;
        this.detail = detail;
        this.type = type;
        this.senderid = senderId;
        this.approverid = approverId;
        this.invalidtime = invalidtime;
    }

    public Project(Integer id, Integer status){
        this.id = id;
        this.status = status;
    }
    public Project(String name, String detail, Integer senderid) {
        this.name = name;
        this.detail = detail;
        this.senderid = senderid;
    }
}
